package org.xlp.base.application.util;

import org.xlp.base.application.constant.StartingParameterConst;
import org.xlp.utils.XLPStringUtil;

/**
 * Description: 应用工具类
 * <br/>date: 2024/11/20 13:09
 *
 * @version 1.0
 * @author: xlp
 */
public class ApplicationUtils {
    /**
     * 配置文件根目录
     */
    private static String CONFIG_BASE_DIR = System.getProperty(StartingParameterConst.APPLICATION_HOME);


    public static String getConfigBaseDir() {
        return CONFIG_BASE_DIR;
    }

    public static void setConfigBaseDir(String configBaseDir) {
        if (XLPStringUtil.isEmpty(CONFIG_BASE_DIR)){
            CONFIG_BASE_DIR = configBaseDir;
        }
    }
}
